﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Wormhole.UI.Application.Controls.Power
{
	/// <summary>
	/// Interaction logic for MissionPower.xaml
	/// </summary>
	public partial class MissionPower : UserControl
	{
		#region Properties

		#region Game
		private Engine.Game _game;
		/// <summary>
		/// The game engine object.
		/// </summary>
		public Engine.Game Game
		{
			get
			{
				return this._game;
			}

			set
			{
				if (this._game != value)
				{
					this._game = value;
					this.SetEngineEvents();
				}
			}
		}
		#endregion

		#endregion

		#region Constructor
		/// <summary>
		/// Initialize a default instance of the class.
		/// </summary>
		public MissionPower()
		{
			InitializeComponent();
		}
		#endregion

		#region Set Engine Events
		protected void SetEngineEvents()
		{
			this.heroPower.Player = this.Game.Player1;
			this.villianPower.Player = this.Game.Player2;
		}
		#endregion
	}
}
